package com.mall.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

 /**
 * 角色表
 * @author : cck
 * @date : 2025-10-10
 */
 
@Schema(name = "角色表",description = "")
@TableName("sys_role")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysRole implements Serializable{
    private static final long serialVersionUID = 1L;
    /** 主键id */
    @Schema(name = "主键id",description = "")
    @TableId
    private Long id;
    /** 角色名称 */
    @Schema(name = "角色名称",description = "")
    private String name;
    /** 角色编码 */
    @Schema(name = "角色编码",description = "")
    private String code;
    /** 排序 */
    @Schema(name = "排序",description = "")
    private Integer sort;
    /** 状态;0禁用 1启用 */
    @Schema(name = "状态",description = "0禁用 1启用")
    private Integer status;
    /** 创建人 */
    @Schema(name = "创建人",description = "")
    private Long createdBy;
    /** 创建时间 */
    @Schema(name = "创建时间",description = "")
    private Date createdTime;
    /** 备注 */
    @Schema(name = "备注",description = "")
    private String remark;
}